package com.oro.domain;

import static javax.persistence.CascadeType.ALL;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.JoinTable;
import javax.persistence.OneToOne;

/**
 * Entity implementation class for Entity: MaterialeStudio
 * 
 */
@Entity
public class MaterialeStudio extends Servizio implements Serializable {

	private static final long serialVersionUID = 1L;
	private String description;
	private String name;

	@OneToOne(cascade = ALL)
	@JoinTable(name = "materialestudio_pricepolicy")
	private PricePolicy pricePolicy;

	public MaterialeStudio() {
		super();
		pricePolicy = new PricePolicy();
	}

	public String getDescription() {
		return description;
	}

	public String getName() {
		return name;
	}

	public PricePolicy getPricePolicy() {
		return pricePolicy;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPricePolicy(PricePolicy pricePolicy) {
		this.pricePolicy = pricePolicy;
	}

}
